﻿using NUnit.Framework;
using SpecFlowTfsLinker.Test.Common;
using SpecFlowTfsLinker.Test.Resources;
using SpecFlowTfsLinker.Tools;

namespace SpecFlowTfsLinker.Test.Tools
{
    [TestFixture]
    public class SpecFlowVsHelperTest : TestInitialization
    {
        [Test]
        public void CanGetVsFolderName()
        {
            var sfHelper = new SpecFlowVsHelper(UserStoryResources.Bowling.CompleteUserStory);
            Assert.AreEqual("SpecFlow_1", sfHelper.FolderName);
        }

        [Test]
        public void CanGetSpecFlowFeatureFileName()
        {
            var sfHelper = new SpecFlowVsHelper(UserStoryResources.Bowling.CompleteUserStory);
            Assert.AreEqual("SpecFlow_1.feature", sfHelper.FeatureFile.FileName);
        }

        [Test]
        public void CanGetSpecFlowStepDefinitionFileName()
        {
            var sfHelper = new SpecFlowVsHelper(UserStoryResources.Bowling.CompleteUserStory);
            Assert.AreEqual("SpecFlow_1.cs", sfHelper.StepDefinitionFile.FileName);
        }
    }
}